package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SchoolRoleApproveLogMapper;
import com.ruoyi.system.domain.SchoolRoleApproveLog;
import com.ruoyi.system.service.ISchoolRoleApproveLogService;

/**
 * 学校认证记录表增删改查Service业务层处理
 * 
 * @author hyb
 * @date 2023-03-04
 */
@Service
public class SchoolRoleApproveLogServiceImpl implements ISchoolRoleApproveLogService 
{
    @Autowired
    private SchoolRoleApproveLogMapper schoolRoleApproveLogMapper;

    /**
     * 查询学校认证记录表增删改查
     * 
     * @param id 学校认证记录表增删改查主键
     * @return 学校认证记录表增删改查
     */
    @Override
    public SchoolRoleApproveLog selectSchoolRoleApproveLogById(Long id)
    {
        return schoolRoleApproveLogMapper.selectSchoolRoleApproveLogById(id);
    }

    /**
     * 查询学校认证记录表增删改查列表
     * 
     * @param schoolRoleApproveLog 学校认证记录表增删改查
     * @return 学校认证记录表增删改查
     */
    @Override
    public List<SchoolRoleApproveLog> selectSchoolRoleApproveLogList(SchoolRoleApproveLog schoolRoleApproveLog)
    {
        return schoolRoleApproveLogMapper.selectSchoolRoleApproveLogList(schoolRoleApproveLog);
    }

    /**
     * 新增学校认证记录表增删改查
     * 
     * @param schoolRoleApproveLog 学校认证记录表增删改查
     * @return 结果
     */
    @Override
    public int insertSchoolRoleApproveLog(SchoolRoleApproveLog schoolRoleApproveLog)
    {
        schoolRoleApproveLog.setCreateTime(DateUtils.getNowDate());
        return schoolRoleApproveLogMapper.insertSchoolRoleApproveLog(schoolRoleApproveLog);
    }

    /**
     * 修改学校认证记录表增删改查
     * 
     * @param schoolRoleApproveLog 学校认证记录表增删改查
     * @return 结果
     */
    @Override
    public int updateSchoolRoleApproveLog(SchoolRoleApproveLog schoolRoleApproveLog)
    {
        schoolRoleApproveLog.setUpdateTime(DateUtils.getNowDate());
        return schoolRoleApproveLogMapper.updateSchoolRoleApproveLog(schoolRoleApproveLog);
    }

    /**
     * 批量删除学校认证记录表增删改查
     * 
     * @param ids 需要删除的学校认证记录表增删改查主键
     * @return 结果
     */
    @Override
    public int deleteSchoolRoleApproveLogByIds(Long[] ids)
    {
        return schoolRoleApproveLogMapper.deleteSchoolRoleApproveLogByIds(ids);
    }

    /**
     * 删除学校认证记录表增删改查信息
     * 
     * @param id 学校认证记录表增删改查主键
     * @return 结果
     */
    @Override
    public int deleteSchoolRoleApproveLogById(Long id)
    {
        return schoolRoleApproveLogMapper.deleteSchoolRoleApproveLogById(id);
    }

    @Override
    public void updateSchoolRoleApproveLogByRoleId(SchoolRoleApproveLog schoolRoleApproveLog) {
        schoolRoleApproveLogMapper.updateSchoolRoleApproveLogByRoleId(schoolRoleApproveLog);
    }
}
